<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Config
 * Manage configurations from file
 * @author zelic
 */
class Config {
    static $entries;
    public static function init(){
        Config::$entries = parse_ini_file("../conf/system.ini", true);
    }
    
    public static function getConfig($section, $key){
        if (array_key_exists($section, Config::$entries)){
            if (array_key_exists($key, Config::$entries[$section])){
                return Config::$entries[$section][$key];
            }
        }
    }
}

?>
